#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void multiplication_table(int a)
{
	for (int i = 1; i <= a; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			printf("%d*%d=%-3d", j, i, i * j);
		}
		printf("\n");
	}
}
int main()
{
	int a = 0;
	while (scanf("%d", &a) != EOF)
	{
		multiplication_table(a);
	}
	return 0;
}
